package com.bill99.rpc.common;

/**
 * @author sheng.zhang
 * 
 */
public class Constants {

	public static final String ROOT_ZOOKEEPER = "/bill99-rpc";

	public static final String PROVIDERS_CATEGORY = "providers";

	public static final String CONSUMERS_CATEGORY = "consumers";

	public static final String HESSIAN_PROTOCOL = "hessian";

	public static final int REGISTRY_CONNECT_TIMEOUT = 30000;

	public static final String DEFAULT_CHARSET = "UTF-8";

	public static final int DEFAULT_WEIGHT = 100;

	public static final int DEFAULT_ALIVE = 60 * 1000;

	public static final int DEFAULT_TIMEOUT = 1000;

	public static final int DEFAULT_CONNECT_TIMEOUT = 3000;

	public static final int DEFAULT_RETRIES = 2;

	public static final String WEIGHT_KEY = "weight";

	public static final String WARMUP_KEY = "warmup";

	public static final int DEFAULT_WARMUP = 10 * 60 * 1000;

	public static final String APPLICATION_KEY = "application";

	public static final String INTERFACE_KEY = "interface";

	public static final String LBMETHOD_KEY = "lbmethod";
	
	public static final String FAILOVER_KEY = "failover";

	public static final String VERSION_KEY = "version";

	public static final String TIMESTAMP_KEY = "timestamp";

	public static final String ADDRESS_KEY = "address";

	public static final String CACHEDIR_KEY = "cacheDir";

	public static final String PATH_SEPARATOR = "/";

	public static final String SERVICES_CACHE_FILE = "services.properties";

}
